package com.party.api.dto.logistics.response;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.List;

/**
 * @Author: Administrator.
 * @Description: 物流信息响应
 * @Date:Created in 2017/9/6 0006 下午 14:19.
 */
public class LogisticsResponse {
    // 用户ID 必填
    @JSONField(name = "EBusinessID")
    private String eBusinessID;

    // 订单编号 可选
    @JSONField(name = "OrderCode")
    private String orderCode;

    // 快递公司编码 必填
    @JSONField(name = "ShipperCode")
    private String shipperCode;

    // 物流运单号 可选
    @JSONField(name = "LogisticCode")
    private String logisticCode;

    // 成功与否 必填
    @JSONField(name = "Success")
    private String success;

    // 失败原因 可选
    @JSONField(name = "Reason")
    private String reason;

    // 物流状态：2-在途中,3-签收,4-问题件 必填
    @JSONField(name = "State")
    private String state;

    // 增值物流状态：
    // 1-已揽收
    // 2-在途中
    // 201-到达派件城市
    // 202-派件中
    // 211-已放入快递柜或驿站
    // 3-已签收
    // 311-已取出快递柜或驿站
    // 4-问题件
    // 401-发货无信息
    // 402-超时未签收
    // 403-超时未更新
    // 404-拒收(退件)
    // 412-快递柜或驿站超时未取
    @JSONField(name = "StateEx")
    private String stateEx;

    // 所在城市
    @JSONField(name = "Location")
    private String location;

    // 物流踪迹
    @JSONField(name = "Traces")
    private List<Traces> traces;

    // 订阅时传入的值
    @JSONField(name = "CallBack")
    private String callBack;

    public String geteBusinessID() {
        return eBusinessID;
    }

    public void seteBusinessID(String eBusinessID) {
        this.eBusinessID = eBusinessID;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getShipperCode() {
        return shipperCode;
    }

    public void setShipperCode(String shipperCode) {
        this.shipperCode = shipperCode;
    }

    public String getLogisticCode() {
        return logisticCode;
    }

    public void setLogisticCode(String logisticCode) {
        this.logisticCode = logisticCode;
    }

    public String getSuccess() {
        return success;
    }

    public void setSuccess(String success) {
        this.success = success;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public List<Traces> getTraces() {
        return traces;
    }

    public void setTraces(List<Traces> traces) {
        this.traces = traces;
    }

    public String getCallBack() {
        return callBack;
    }

    public void setCallBack(String callBack) {
        this.callBack = callBack;
    }

    public String getStateEx() {
        return stateEx;
    }

    public void setStateEx(String stateEx) {
        this.stateEx = stateEx;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }
}
